package ${location}.exception;

import ${location}.common.HttpCode;
import org.apache.commons.lang3.StringUtils;

/**
 * 自定义业务异常类
 *
 * @author ${author}
 */
public class CustomizeException extends RuntimeException {
	private final HttpCode httpCode;

	public CustomizeException(String message, HttpCode httpCode) {
		super(StringUtils.isBlank(message) ? httpCode.getMsg() : message);
		this.httpCode = httpCode;
	}

	public HttpCode getResponseCode() {
		return httpCode;
	}
}